<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="java.util.ArrayList"%>
<%@page import="com.google.gdata.data.youtube.VideoEntry"%>
<%@page import="java.util.Scanner"%>
<%@page import="java.util.List"%>
<%@page import="com.google.gdata.data.media.mediarss.MediaThumbnail"%>
<%@page import="com.google.gdata.data.youtube.YouTubeMediaGroup"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="style.css" rel="stylesheet" type="text/css" />
<title>acb</title>
</head>
<body><div id="cadre">
<jsp:useBean id="panier" class="fr.unice.outils.PanierBean" scope="application"/>
<h1>Resultats</h1>Graphique des utilisateurs
<table border='1px'><tr><td>
<%
ArrayList<VideoEntry> vidz=panier.getVideoList();

for (int i=0;i<vidz.size();i++){

		YouTubeMediaGroup mediaGroup = vidz.get(i)
				.getMediaGroup();

		List<MediaThumbnail> liste = mediaGroup.getThumbnails();
		String reponse = "<div class=\"video\">";
		reponse += "<br/><a href=\""
				+ vidz.get(i).getHtmlLink().getHref()
				+ "\"><img src=\"" + liste.get(0).getUrl()
				+ "\"/></a>";
		reponse += "<div class=\"infovideo\">";
		if (vidz.get(i).getTitle() != null) {
			reponse += "<br/>"
					+ vidz.get(i).getTitle()
							.getPlainText();
		}
		String nom = vidz.get(i).getHtmlLink().getHref();
		
		reponse += "</div>";
		reponse += "</div>";
	

%>
<%=reponse%>
<%
}
%></td></tr>
</table>
<br>
<a href="acbyoutubefichier.png">driss<img src="acbyoutubefichier.png" width="400" height="400"></a>
</div>
</body>
</html>